home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ Control Panel Hide Disp.xpl < prev    next >
Text File  |  2000-11-13  |  2KB  |  80 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="5"
  4. "UIPATH"="Appearance\Control Panel\Other Settings"
  5. "NAME"="Visible pages in "Display""
  6. "LANGUAGE"="VBScript"
  7. "VERSION"="1.14"
  8. "OSVERSION"="11101"
  9. "TEXT 1"="Show "Background" page in Display control"
  10. "TEXT 2"="Show "Screensaver" page in Display control"
  11. "TEXT 3"="Show "Appearance" page in Display control"
  12. "TEXT 4"="Show "Settings" page in Display control"
  13. "TEXT 5"="Show "ActiveDesktop" page in Display control "
  14. "DESCRIPTION 1"="To show a page inside the "Display" control, activate it. To hide it, deactivate it."
  15. "DESCRIPTION 2"="If all items are hidden, the "Display" control will not start."
  16. "AUTHOR"="Xteq Systems"
  17. "CONTACTURL"="http://www.xteq.com"
  18. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  19. "COMMENT 1"=" "
  20. "COMMENT 2"=" "
  21.  
  22.  
  23.  
  24. sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
  25. sPath2="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
  26.  
  27. sBAK="NoDispBackgroundPage" 'all dword (1 = remove)
  28. sSCR="NoDispScrSavPage"
  29. sAPP="NoDispAppearancePage"
  30. sSET="NoDispSettingsPage"
  31. sACD="NoActiveDesktopChanges"
  32.  
  33. Sub Plugin_Initialize 
  34.     i=RegReadValue(sPath & sBAK)
  35.     if i<>1 then SetUIElement 1,true
  36.  
  37.     i=RegReadValue(sPath & sSCR)
  38.     if i<>1 then SetUIElement 2,true
  39.  
  40.     i=RegReadValue(sPath & sAPP)
  41.     if i<>1 then SetUIElement 3,true
  42.  
  43.     i=RegReadValue(sPath & sSET)
  44.     if i<>1 then SetUIElement 4,true
  45.  
  46.     i=RegReadValue(sPath2 & sACD)
  47.     if i<>1 then SetUIElement 5,true
  48. End Sub
  49.  
  50. Sub Plugin_CheckData(ElementIndex)
  51. End Sub
  52.  
  53. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  54.  Call WriteIt(1,sPath,sBAK)
  55.  Call WriteIt(2,sPath,sSCR)
  56.  Call WriteIt(3,sPath,sAPP)
  57.  Call WriteIt(4,sPath,sSET)
  58.  Call WriteIt(5,sPath2,sACD)
  59.  
  60.  Call IndicateSettingChange()
  61. End Sub
  62.  
  63. Sub WriteIt(ITM,PAT,VAL)
  64.  b=GetUIElement(ITM)
  65.  if b=false then
  66.     call RegWriteValue(PAT & VAL,1,2)
  67.  else
  68.     chk=RegReadValue(PAT & VAL)
  69.     if IsEmpty(chk)=false then
  70.        Call RegDeleteValue(PAT & VAL)
  71.     end if
  72.  end if
  73. end sub
  74.  
  75. Sub Plugin_Terminate 
  76. End Sub
  77.  
  78.  
  79.  
  80.